<template>
  <div>
     <p>{{time|dataformat}}</p>
     <p>{{money|remoney}}</p>
   </div>
</template>
 
<script>
import moment from "moment"
export default {
  name: "App",
  components: {},
  props: {},
  data() {
    return {
      time:new Date(),
      money:29
    };
  },
  computed: {},
  watch: {},
  created() {},
  methods: {},
  filters:{
    dataformat(value){
      return moment(value).format("YYYY-MM-DD HH:mm")
    },
    remoney(value){
      return '$'+value 
    }
  },
};
</script>

<style scoped>
     
</style>